#!/usr/bin/python3.5
# -*- coding utf-8

"""
Python样例100
地址: http://www.runoob.com/python/python-exercise-example1.html

需求: 有四个数字：1、2、3、4，能组成多少个互不相同且无重复数字的三位数？各是多少？
"""
num = 0
for i in range(1, 5):
    for j in range(1, 5):
        for k in range(1, 5):
            if i != j and j != k and i != k:
                print(i, j, k)
                num += 1

print("num is ", num)
